package user

import (
	"context"
	"srv/config"
	"srv/internal/model/dao"
	__ "srv/proto"
)

// 实现方法
func (s *UserService) GvaExamFind(ctx context.Context, req *__.GvaExamFindRequest) (resp *__.GvaExamFindResponse, err error) {
	var exam dao.GvaExam
	config.DB.Where("type=?", req.Type).Find(&exam)
	return &__.GvaExamFindResponse{
		Type:       int64(exam.Type),
		TitleType:  int64(exam.TitleType),
		TitleIntro: exam.TitleIntro,
		True:       int64(exam.True),
		Big:        int64(exam.Big),
	}, nil
}
